<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript">
	
	function checkForm(){
		/* var deptName=$("#deptName").val();
		if(deptName==null || deptName==""){
			$("#error").html("部门名称不能为空！");
			return false;
		} */
		return true;
	}
	
	
	function resetValue(){
		/* $("#deptName").val("");
		$("#remark").val(""); */
	}
</script>
</head>
<body>
<div class="panel panel-default">
  <div class="panel-heading">
    <h3 class="panel-title">${actionName }</h3>
  </div>
  <div class="panel-body">
    <form class="form-horizontal" method="post" action="${pageContext.request.contextPath}/order/save.do" onsubmit="return checkForm()">
	  <div class="form-group">
	    <label class="col-sm-2 control-label">用户ID：</label>
	    <div class="col-sm-10">
	      <input type="text" class="form-control" id="userId" name="userId" value="${order.userId }" style="width: 300px">
	      <%-- <input type="hidden" class="form-control" id="userId" name="userId" value="${currentUser.id }" style="width: 300px"> --%>
	    </div>
	  </div>
	  <%-- <div class="form-group">
	    <label class="col-sm-2 control-label">快递公司编号：</label>
	    <div class="col-sm-10">
	      <input type="text" class="form-control" id="companyId" name="companyId" value="${order.companyId }" style="width: 300px">
	    </div>
	  </div> --%>
	  <div class="form-group">
	    <label class="col-sm-2 control-label">价格方案选择：</label>
	    <div class="col-sm-10">
			<div class="radio">
			  <label>
			    <input type="radio" name="priceType" id="optionsRadios1" value="1" checked>
			   	 第一种：基础价格+0.7*重量+区域价格
			  </label>
			</div>
			<div class="radio">
			  <label>
			    <input type="radio" name="priceType" id="optionsRadios2" value="2">
			             第二种：0.8*重量+区域价格
			  </label>
			</div>
	    </div>
	  </div>
	  <div class="form-group">
	    <label class="col-sm-2 control-label">源地址：</label>
	    <div class="col-sm-10">
	      <input type="text" class="form-control" id="address" name="address" value="${order.address }" style="width: 300px">
	    </div>
	  </div>
	  <div class="form-group">
	    <label class="col-sm-2 control-label">目标地址：</label>
	    <div class="col-sm-10">
	      <input type="text" class="form-control" id="toAddress" name="toAddress" value="${order.toAddress }" style="width: 300px">
	    </div>
	  </div>
	  <div class="form-group">
	    <label class="col-sm-2 control-label">重量：</label>
	    <div class="col-sm-10">
	      <input type="text" class="form-control" id="weight" name="weight" value="${order.weight }" style="width: 300px">
	    </div>
	  </div>
	  <div class="form-group">
	    <div class="col-sm-offset-2 col-sm-10">
	      <input type="hidden" id="id" name="id" value="${order.id }"/>
	      <button type="submit" class="btn btn-primary">保存</button>&nbsp;&nbsp;
	      <button type="button" class="btn btn-primary" onclick="resetValue()">重置</button>&nbsp;&nbsp;
	      <font color="red" id="error"></font>
	    </div>
	  </div>
  </div>
</div>
</body>
</html>